package vg.services.graph_view_manager.realization.graph_view.smart_graph_view.realization.actions;

import org.apache.commons.lang.mutable.MutableBoolean;
import vg.services.data_base_manager.data.graph.Attribute;
import vg.services.data_base_manager.data.graph.Edge;
import vg.services.data_base_manager.data.graph.Vertex;
import vg.services.graph_view_manager.interfaces.graph_view.IGraphRenderer;
import vg.services.main_manager.MainManager;

import javax.swing.*;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * Shows attributes.
 *
 * @author Timur Zolotuhin (e-mail: tzolotuhin@gmail.com)
 */
public class ShowAttributesAction extends DefaultActionAdapter {
    private Set<String> vertexAttributes;
    private Set<String> edgeAttributes;

    public ShowAttributesAction(Set<String> vertexAttributes, Set<String> edgeAttributes) {
        super("show attributes action");

        this.vertexAttributes = vertexAttributes;
        this.edgeAttributes = edgeAttributes;
    }

    @Override
    public void action(final IGraphRenderer graphRenderer) {
        graphRenderer.showAttributes(vertexAttributes, edgeAttributes);
    }
}
